package com.bat.spring.normalbean;

import bat.ke.qq.com.bean.MyImportBeanDefinitionRegistrar;
import bat.ke.qq.com.bean.MyImportSelector;
import bat.ke.qq.com.bean.User;
import bat.ke.qq.com.config.AppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author: liusen
 * @date: 2022-04-10
 * @desc:
 **/



@Configuration
@ComponentScan("com.bat.spring.normalbean")
public class NormalBeanAppConfig {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(NormalBeanAppConfig.class);

		System.out.println(context.getBean(AppleService.class));
	}
}
